import request from './../request.js'

export const getProcessDataPage = (params) =>
  request({ url: '/intelligent/process_data/page', params })

export const processDataDetail = (params) =>
  request({ url: `/intelligent/process_data/get/${params.id}` })

export const saveProcessData = (params) =>
  request({
    method: 'post',
    url: '/intelligent/process_data/save',
    data: params,
  })

export const updateProcessData = (params) =>
  request({
    method: 'post',
    url: '/intelligent/process_data/update',
    data: params,
  })

export const deleteProcessData = (params) =>
  request({
    method: 'post',
    url: '/intelligent/process_data/delete',
    data: params,
  })

export const uploadProcessData = (params) =>
  request({
    method: 'post',
    url: '/intelligent/process_data/uploadFile',
    data: params,
  })
